{extends file="admin/base2.html"}

{block name="content"}
        <div class="x-body">
            <form class="layui-form" action="index.php?c=admin&a=tagUpdate" method="post">
                <div class="layui-form-item">
                    <input type="hidden" name="id" required lay-verify="id" value="{$tag.id}" 
                        autocomplete="off" class="layui-input">
                    <label for="cname" class="layui-form-label">
                        ID
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="cname" name="id" required="" lay-verify="required"
                        autocomplete="off"  value="{$tag.id}" disabled="" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="cname" class="layui-form-label">
                        <span class="x-red">*</span>分类名
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="cname" name="name" required="" lay-verify="required"
                        autocomplete="off" value="{$tag.name}" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">
                            状态
                        </label>
                        <div class="layui-input-block">
                             <select lay-verify="required" name="state">
                                <option>
                                </option>
                                <option value="0" {if $tag.state eq '0'}selected{/if}>不显示</option>
                                <option value="1" {if $tag.state eq '1'}selected{/if}>显示</option>
                            </select>
                        </div>
                    </div>
                </div>
                
                
                <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label">
                    </label>
                    <button  class="layui-btn" lay-filter="save" lay-submit="">
                        保存
                    </button>
                </div>
            </form>
        </div>
{/block}
{block name="js"}
    {literal}
        <script>
            layui.use(['form','layer','layedit'], function(){
                $ = layui.jquery;
              var form = layui.form()
              ,layer = layui.layer
              ,layedit = layui.layedit;
                 });
        </script>
    {/literal}
{/block}